package Pattern.prototype.code;

public class Canvas implements Cloneable{
    int width = 23;
    int length = 34;

    public void open(){
        System.out.println("打开长宽为" + width + " , " + length + "的画布");
    }

    @Override
    public Canvas clone() throws CloneNotSupportedException {
        return (Canvas) super.clone();
    }
}
